// 创建请求接口 方法
import { get, post } from "../request/methods"
import $ from "jquery"

// 监控情况数据接口 Monitorsituation -- 监控情况 
export const getMonitorSituation = () => {
    return get({
        url: "/v1.0/api/safeManage/monitoringSituation"
    })
}

// 门禁情况数据接口  AccessSituation -- 门禁情况
export const getAccessSituation = () => {
    return get({
        url: "/v1.0/api/safeManage/dutySituation"
    })
}


// 值班情况数据接口   DutySituation -- 值班情况
export const getDutySituation = () => {
    return get({
        url: "/v1.0/api/safeManage/entranceGuardSituation"
    })
}

// 监控画面数据接口  MonitorPicture -- 监控画面
export const getMonitorPicture = () => {
    return get({
        url: "/v1.0/api/safeManage/monitoringList"
    })
}



// 毕业生流向城市接口
export const getDistribution = (data: any) => {
    return get({
        url: "/v1.0/api/student/stats/distribution",
        params: {
            expertiseId: data.expertiseId,
            gradYear: data.gardYear
        }
    })
}
// 成功编码
export const getCityCode = () => {
    return $.get({
        url: "https://geo.datav.aliyun.com/areas_v3/bound/100000_full.json",

        // res.header("Access-Control-Allow-Origin", "*"); 设置响应头，*表示任何地址都亦可以访问
    })
}

// 就业态势基本信息
export const get_ji=()=>{
    return get({
        url:'/v1.0/api/student/stats/byAreaCode',
    })
}

export const get_qingkuang=()=>{
    return get({
        url:'/v1.0/api/student/stats/status'
    })
}